#ifndef WEIGHTDATA_H
#define WEIGHTDATA_H

#include <QObject>
#include <QDateTime>

class weightdata: public QObject
{
    Q_OBJECT
    Q_PROPERTY(int id READ id)
    Q_PROPERTY(float weight READ weight)
    Q_PROPERTY(QDateTime time READ time)
public:
    explicit weightdata(QObject *parent = nullptr);
    weightdata(const int &id, const float &weight, const QDateTime& time, QObject *parent = nullptr);
    int id()const;
    float weight()const;
    QDateTime time()const;
private:
    int m_id;
    float m_weight;
    QDateTime m_time;
};

#endif // WEIGHTDATA_H
